package day5;

public class t6 {
    public static void main(String[] args) {
        int []arr={123,123,4324,3453,234,234,1,2,3};
        max(arr);
    }

    public static void max(int []arr) {
        int max =arr[0];
        for (int i = 0; i < arr.length; i++) {
            if(max<arr[i]) max =arr[i];
        }
        System.out.println(max);
    }
}
